//
//  EJSShoppingCarSingleton.h
//  ManShiGuang
//
//  Created by Teresa on 2020/5/14.
//  Copyright © 2020 lifayu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XOShoppingCartListModel.h"
#import "BaseRequest.h"

#define Noti_UpdateShoppingCarList @"Noti_UpdateShoppingCarList"

NS_ASSUME_NONNULL_BEGIN

@interface EJSShoppingCarSingleton : NSObject

+ (instancetype)sharedSingleton;

@property(nonatomic, strong) XOShoppingCartListModel * shoppingList;

///获取购物车信息
-(void)requestShoppingList;
///刷新购物车信息
-(void)updateShoppingList:(void(^)(XOShoppingCartListModel*))shoppingList failHandler:(RequestCompletionHandler)fail;
///退出登录，删除购物车数据
-(void)logoutAndEmptyShoppingCar;

@end

NS_ASSUME_NONNULL_END
